package infraestructura;

import java.util.List;
import modelo.Product;

public interface ProductPersistence {
    
    public boolean exists(String name);
    public boolean exists(int id);
    public int getTheId(String name);
    public Product getProduct(int id);
    public List<Product> getALLTheProducts();
    public void createProduct(Product product);
    public void updateProduct(int id, Product product);
    public void deleteProduct(int id);
    public void updateStock(int id, int cantidad);

}
